﻿@model ForumEngine.Models.ThreadModel

@{
    ViewBag.Title = Model.Name;
}

@Html.Partial("PathPartial", Model.Path)

<div class="thread">
    <div class="title">Thread: @Model.Name</div>
    <table>
        @foreach (var post in Model.Posts)
        {
            <tr class="header">
                <td colspan="2">@post.Title</td>
            </tr>
            <tr class="body">
                <td class="user">@Html.Partial("UserInfoPartial", post.Author)</td>
                <td class="message">
                    <div class="text">@post.Text</div>
                    <div class="signature">@post.Author.Signature</div>
                </td>
            </tr>
        }
    </table>
</div>

@Html.Partial("PathPartial", Model.Path)
